import type { Data } from '@/types/global'
import type { LoginData, LoginResult } from '@/types/login'
import { http } from '@/utils/http'

export const postLoginAPI = (data: LoginData) => {
  return http<Data<LoginResult>>({
    url: '/user/login/phone',
    method: 'POST',
    data,
  })
}
